package com.taomus.mytools.other.utils;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.jar.JarFile;

public class FileUtils2 {
	public InputStream fileToInputStream(File arg0,boolean isJar) throws IOException{
		if(isJar) {
			JarFile jf = new JarFile(arg0);
		}
		return null;
	}
	
	public static void main(String[] args) {
		URL url = FileUtils2.class.getClassLoader().getResource("");
		String jarPath = url.toString().substring(0, url.toString().indexOf("!/") + 2);
		System.out.println(jarPath);
	}
}
